<template>
  <view class="content">
	<cropper selWidth="660rpx" selHeight="660rpx" canScale="true" @upload="myUpload" :avatarSrc="imgurl" avatarStyle="width:100vw;height:100vw;"> 
	1111222222222222222222222222222222222
	</cropper>
  </view>
</template>

<script>
//script部分
    import cropper from "../../components/lxiaoxiao-cropper/lxiaoxiao-cropper.vue";
    export default {
        components: {
          cropper
        },
        data() {
            return {
                 imgurl:"/static/logo.png"
            }
        },
        methods: {
            //上传返回图片
            myUpload(rsp) {
              const self = this;
              self.imgurl = rsp.path; //更新头像方式一
              // rsp.avatar.imgSrc = rsp.path; //更新头像方式二
            },

        }
    }
</script>

<style>
.content {
  padding: 20rpx;
}
</style>    